<!-- svg组件 -->
<template>
    <svg :class="props.iconClass" class="svg-icon" aria-hidden="true">
        <use :xlink:href="`#icon-${props.iconName}`"></use>
    </svg>
</template>

<script setup>
let props = defineProps(['iconName', 'iconClass'])

</script>

<style lang="scss" scoped>
.svg-icon {
    width: 18px;
    height: 18px;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}
</style>